#-*-coding:utf-8-*-
import redis, datatime

# session配置(redis,memcached,filesystem)
# SESSION_TYPE = 'redis'
# 
# 配置session过期时间SESSION_PERMANENT设置为False session将在浏览器关闭后过期
# SESSION_PERMANENT = True
# PERMANENT_SESSION_LIFETIME = datetime.timedelta(minutes=5)

# 配置session使用redis
# SESSION_REDIS = redis.from_url('redis://[:password]@localhost:6379/0')

# 配置session使用本地磁盘
# SESSION_FILE_DIR = '/tmp'

# mysql配置
# DIALCET = 'mysql'
# SQL_DRIVER = 'mysqldb'
# SQL_USERNAME = '****'
# SQL_PASSWORD = '****'
# SQL_HOST = '****'
# SQL_PORT = '3306'
# DATABASE = '****'
# SQLALCHEMY_DATABASE_URI = '{}+{}://{}:{}@{}:{}/{}?charset=utf8'\
#     .format(DIALCET, SQL_DRIVER, SQL_USERNAME, SQL_PASSWORD, SQL_HOST, SQL_PORT, DATABASE)
# SQLALCHEMY_COMMIT_ON_TEARDOWN = True
# SQLALCHEMY_TRACK_MODIFICATIONS = True